import mindspore
import numpy as np
from mindspore import Tensor, ops
input_x = Tensor(np.ones(shape=[3, 2, 1]), mindspore.float32)
output = ops.shape(input_x)

print(output)
print(output[:-1])
